package com.yuuzai.mhagikingdoms.framework.action;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

import com.yuuzai.openworld.framework.ITargetable;
import com.yuuzai.openworld.framework.action.ActionContext;

public class MKActionContext extends ActionContext {
	
	public void setTarget(ITargetable value) {
		assertNotNull(targets);
		targets.add(value);
	}
	
	/* Definition */

	protected Set<ITargetable> targets;

	public Set<ITargetable> getTargets() {
		assertNotNull(targets);
		return Collections.unmodifiableSet(targets);
	}

	public void setTargets(Set<ITargetable> value) {
		this.targets = value;
		assertNotNull(targets);
	}

	public MKActionContext() {
		this.setTargets(new HashSet<ITargetable>());
	}

}
